Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Conversation

@Akagi201
Copy link
Contributor

Refined the Dockerfile scripts.

@rphmeier
Copy link
Contributor

cc @chevdor

@chevdor
Copy link
Contributor

chevdor commented Jul 30, 2018

Thanks for the PR @Akagi201.
I wanted to have the dockerfile as independant as possible but your change will likely make it more maintainable.

@chevdor
Copy link
Contributor

chevdor commented Jul 31, 2018

Not sure we need the ./init.sh (nor its content) at all actually. So please hold on before merging until I am done with a few tests.

@Akagi201
Copy link
Contributor Author

Akagi201 commented Jul 31, 2018

@chevdor I post this PR to let the docker build process be the same as the manually build process. I think it is important for consistency.

When build manually, just run

./init.sh
./build.sh
cargo build

so the Dockerfile should be the same process.

I have tested it and you may check it twice.

@chevdor
Copy link
Contributor

chevdor commented Jul 31, 2018

What I am trying to say is that ./init.sh and ./build.sh are not required in the build process.
You can have a look at #463 where I removed them entirely. It makes the image smaller and faster to build while having also less moving parts.

@Akagi201
Copy link
Contributor Author

Akagi201 commented Aug 1, 2018

I agree with two stage docker build. It is also good for isolating the source code and binary. And I wrote one for my own use. https://github.com/Akagi201/dockerfile/blob/master/polkadot/Dockerfile

I am not sure the need for the init.sh and build.sh script. If they are not required, you may close this PR.

@chevdor
Copy link
Contributor

chevdor commented Aug 1, 2018

What is the size of the image you get in the end with your 2 stages image?

@chevdor
Copy link
Contributor

chevdor commented Aug 3, 2018

@Akagi201 Thanks again for this PR, I will close it as agreed since the scripts are definitely not required.

@chevdor chevdor closed this Aug 3, 2018
lamafab pushed a commit to lamafab/substrate that referenced this pull request Jun 16, 2020
liuchengxu added a commit to autonomys/substrate that referenced this pull request Jun 3, 2022
…error

Assert specific error for submitting the execution receipt to txpool
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants